package com.qf.java2201.edu.userservice.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @date 2022/6/4
 * @desc
 */
public class SecurityUtils {

    /**
     * 生成BCryptPasswordEncoder密码
     * @param password
     * @return
     */
    public static String encryptPassword(String password) {
        BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        return passwordEncoder.encode(password);
    }

}
